﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DoubanApiLib.Attributes
{
    [AttributeUsage(AttributeTargets.Property)]
    public class PropertyAttribute : Attribute
    {
        public string TableName
        {
            get;
            set;
        }
        public string RowName
        {
            get;
            set;
        }
        public string Param1
        {
            get;
            set;
        }
        public string Param2
        {
            get;
            set;
        }

        public PropertyAttribute(string TableName, string RowName)
        {
            this.TableName = TableName;

            this.RowName = RowName;
        }

        public PropertyAttribute(string TableName, string RowName, string Param1, string Param2)
        {
            this.TableName = TableName;

            this.RowName = RowName;

            this.Param1 = Param1;

            this.Param2 = Param2;
        }

    }
}
